package java1;


class java1 {
    public java1() {
        System.out.println("I am an Animal");
    }

    public void eat() {
        System.out.println("I can eat");
    }
}

class dog extends java1 {
    public dog(){
        super();
        System.out.println("I am a dog");
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println("I eat dog food");
    }

    public void bark() {
        System.out.println("I can bark");
    }

    public void printType() {
    }
}

class java {
    public static void main(String[] args) {
        dog dog1 = new dog();

        dog1.eat();
        dog1.bark();
    }
}